/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.resource.entity.ResourceCtfSubject;
import com.lczyfz.istep.modules.teach.entity.TeachStudentCtfsubject;

import java.util.List;

/**
 * CTF题目管理DAO接口
 * @author dh
 * @version 2017-01-16
 */
@MyBatisDao
public interface ResourceCtfSubjectDao extends CrudDao<ResourceCtfSubject> {
//fds
    //CTF题目集链接查看题目
    List<ResourceCtfSubject> viewCtfSubjectList(ResourceCtfSubject resourceCtfSubject);

    //我的CTF题目集-进入题目集
    List<ResourceCtfSubject> stuEnterCtfSetList(ResourceCtfSubject resourceCtfSubject);
    //根据ctf题目集查询ctf题目
    List<ResourceCtfSubject> findListByCtfSetId(ResourceCtfSubject resourceCtfSubject);

    void saveAnswer(TeachStudentCtfsubject teachStudentCtfsubject);
    void updateAnswer(TeachStudentCtfsubject teachStudentCtfsubject);
    TeachStudentCtfsubject findStudentCtfSubject(TeachStudentCtfsubject teachStudentCtfsubject);

    ResourceCtfSubject findCtfSubjectByName(ResourceCtfSubject resourceCtfSubject);
}